package client;

import javax.swing.JFrame;
import java.awt.Rectangle;
import java.awt.Dimension;
import java.awt.Point;

public class ClientWindow extends JFrame {
	
	
	private LoginPanel lp;
	private StudentPanel sp;
	static ClientWindow cw;
	
	public ClientWindow() {
		setResizable(false);
		setLocation(new Point(300, 200));
		setTitle("Group 19 AES Client");
		setSize(new Dimension(500, 500));
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		sp=new StudentPanel();
		getContentPane().add(sp);
		lp=new LoginPanel();
		getContentPane().add(lp);
		this.setVisible(true);
		
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		cw=new ClientWindow();
	}

	public void showsp() {
		lp.setVisible(false);
		sp.setVisible(true);
		setContentPane(sp);	
	}

	public void showlp() {
		sp.setVisible(false);
		lp.setVisible(true);
		setContentPane(lp);	
		
	}

}
